package com.erp.remote.sale.information;

import com.erp.util.AjaxResult;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: lyj
 * @Date: 2025/7/1 9:10
 */
@RequestMapping("/information/client")
public interface MyClientRemote {

    /**
     * @description: 根据companyId查询出所有的客户 
     * @author: lyj
     * @date: 2025/7/18 
     * @param: [companyId]
     * @return: com.erp.util.AjaxResult
    **/
    @RequestMapping("/selectClientByCompanyId")
    AjaxResult selectClientByCompanyId(@RequestParam("companyId") Integer companyId);

    /**
     * 根据Id查询客户
     * @param clientId
     * @return
     */

    @PostMapping("/selectClientByClientId")
    AjaxResult selectClientByClientId(@RequestParam("clientId") Integer clientId);



    /**
     * @description: 根据客户类型ID查找客户List
     * @author: lyj
     * @date: 2025/7/4
     * @param: [quotationTypeId]
     * @return: com.erp.util.AjaxResult
    **/
    @PostMapping("/selectClientByCategoryId")
    AjaxResult selectClientByCategoryId(@RequestParam("categoryId") Integer categoryId,@RequestParam("companyId") Integer companyId);

    /**
     * @description: 根据客户等级ID查找客户List
     * @author: lyj
     * @date: 2025/7/4
     * @param: [quotationTypeId]
     * @return: com.erp.util.AjaxResult
    **/
    @PostMapping("/selectClientByLevelId")
    AjaxResult selectClientByLevelId(@RequestParam("levelId") Integer levelId,@RequestParam("companyId") Integer companyId);

    @PostMapping("/selectClientIdsByClientNameOrContanterName")
    AjaxResult selectClientIdsByClientNameOrContanterName(@RequestParam("companyId") Integer companyId,@RequestParam("description") String description);
}
